<template>
    <div class="myError">
        <div>
            <h1>错误页面，请返回首页</h1>
        </div>
        <div>
            <el-button @click="backIndex" type="primary">返回首页</el-button>
        </div>
    </div>
</template>

<script>
    export default {
        name: "Error",
        methods:{
            backIndex(){
                this.$router.push('/')
            }
        }
    }
</script>

<style scoped>
    .myError{
        width: 100vw;
        height: 80vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
</style>